package com.xiaoxu.bbs.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("TBL_REPLY")
public class Reply {
	//回复ID
	private Long id;
	//回复标题
	private String title;
	//回复内容
	private String content;
	//点赞数
	private Integer agree;
	//发布时间
	@TableField(fill = FieldFill.INSERT)
	private LocalDateTime createTime;
	//修改时间
	@TableField(fill = FieldFill.INSERT_UPDATE)
	private LocalDateTime updateTime;
	//回复用户ID
	private Long userId;
	//主题页ID
	private Long topicId;
	//再次回复id   默认0，表示是对主题的回复
	private Long rereplyId;
}
